package com.android.smsmb.mui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

/**
 * Created by andrew on 7/11/14.
 */
public class CardMenuActivity extends FragmentActivity {

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initFragment(new CardMenuListFragment());
        //getFragmentManager().beginTransaction().replace(R.layout.frameexm_layout, new CardMenuListFragment()).commit();
    }
    protected void initFragment(Fragment fragment) {
        FragmentManager fragmentManager = getSupportFragmentManager();
        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
        fragmentTransaction.replace(android.R.id.content, fragment);
        fragmentTransaction.commit();
    }

    /*@Override
    public void onCardMenuItemSelectedListener(int pos) {
        Log.d("MyLogs", String.valueOf(pos));
        switch (pos) {
            case 0:
                DialogFragmentPhoneRecharge dfpr = new DialogFragmentPhoneRecharge();
                dfpr.show(getFragmentManager(), "dialog_pay");
                break;
            case 1: 
                break;
        }
    }*/


}
